home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
execute_command
< prev
next >
Wrap
Text File
|
2000-03-24
|
960b
|
28 lines
PRELIMINARY
SYNOPSIS
int execute_command (string command, object origin, object player)
DESCRIPTION
Low-level access to the command parser: take the <command>, parse it
into verb and argument and call the appropriate action added to
<origin>. For the execution of the function(s), this_player() is set
to player. The function also sets results of query_command() and
query_verb() to match the given <command>.
The result is non-0 if the command was found and execute, and 0
otherwise.
The efun raises a privilege violation ("execute_command",
this_object(), origin, command).
Note that this function does not use the H_MODIFY_COMMAND
and H_NOTIFY_FAIL hooks; the notify_fail() efun is can be used,
but must be evaluated by the caller.
HISTORY
Introduced in LDMud 3.2.7
SEE ALSO
hooks(C), command(E), notify_fail(E), command_stack(E)